<template>
    <scroll-view class="scroll-view" scroll-y="true" @scrolltolower="scrolltolower">
        <view class="top"></view>
        <view class="list-t">
            <view class="lists" v-for="it in 5">
                <view class="flex">
                    <view class="right">
                        <view class="">商品消费</view>
                        <view class="sj">2024-08-12 14:20:50</view>
                    </view>
                </view>
                <view class="money">+20</view>
            </view>
        </view>
    </scroll-view>
</template>

<script setup>
const scrolltolower = () => {
    console.log('滚动到底部');
};
</script>

<style lang="scss" scoped>
.scroll-view {
    .top {
        height: 20rpx;
        background-color: #f5f5f5;
    }
    .list-t {
        padding: 0 38rpx 0 32rpx;
        .lists {
            .right {
                .sj {
                    margin-top: 16rpx;
                    font-size: 24rpx;
                    color: #999999;
                }
                font-size: 28rpx;
                color: #333333;
            }

            .money {
                color: #f8bb4f;
                font-size: 48rpx;
            }
            .flex {
                display: flex;
                align-items: center;
            }
            &:last-child {
                border: none;
            }
            height: 160rpx;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: solid 2rpx #eae9e9;
        }
    }

    height: 100vh;
}
</style>
